package cn.szzsi.scanCode;

import com.jfinal.core.Controller;

/**
 * Created by Administrator on 2017/11/3 0003.
 */
public class ScanCodeController extends Controller{

    static ScanCodeService scanCodeService = ScanCodeService.me;

    public void scanCode(){
        String code = getPara("code");
        String shopId = getPara("shopId");
        int type = getParaToInt("type");//0代表内码，1代表外码
        String link_id = "";
        if(0==type){//扫描内码
            link_id = scanCodeService.chooseCodeTemplete(shopId,code);
        }else if(1==type){//扫描外码

        }
        redirect(link_id);
    }
}
